home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 1.iso / t_os / tvmode / tvmode.h < prev    next >
Text File  |  1991-10-18  |  7KB  |  142 lines

  1. #define MAXBLK 32
  2.     static short    on_tbl[MAXBLK] ={
  3.     0x86,  0x610,     0,     0,  0x71b,  0x6,   0xc,  0x12,
  4.     0x20c, 0x1a4, 0x6a4, 0x1a4,  0x6a4, 0x54, 0x1e4,  0x54,
  5.     0x1e4,     0, 0x1a4,  0x50,   0xa0,    0, 0x1a4,  0x80,
  6.     0x100,  0x64,   0x7, 0x101, 0x401f,  0xc,   0xb, 0x1ca};
  7.                                                /* ful=3 */
  8.     static short    con_tbl[MAXBLK] ={
  9.     0x86,  0x610,     0,     0,  0x71b,  0x6,   0xc,  0x12,
  10.     0x20c, 0x1a4, 0x6a4, 0x1a4,  0x6a4, 0x54, 0x1e4,  0x54,
  11.     0x1e4,     0, 0x1a4,  0x50,  0x0a0,    0, 0x1a4,  0x50,
  12.     0x0a0,  0x64,   0x7, 0x101, 0x400f,  0xc,   0xb, 0x1ca}; 
  13.  
  14.     static short    plt_tbl[MAXBLK] ={
  15.     0x86,  0x610,     0,     0,  0x71b,  0x6,   0xc,  0x12,
  16.     0x20c, 0x1a4, 0x6a4, 0x1a4,  0x6a4, 0x38, 0x20a,  0x38,
  17.     0x20a,  0x00, 0x1a4, 0x080,  0x100, 0x00, 0x1a4, 0x080,
  18.     0x100,  0x64,   0x7, 0x101, 0x400f,  0xc,   0xb, 0x1ca};
  19.  
  20.     static short    rtc_tbl[MAXBLK] ={
  21.     0x86,  0x610,     0,     0,  0x71b,  0x6,   0xc,  0x12,
  22.     0x20c, 0x1a4, 0x6a4, 0x1a4,  0x6a4, 0x12, 0x20a,  0x12,
  23.     0x20a,  0x00, 0x1a4, 0x080,  0x100, 0x00, 0x1a4, 0x080,
  24.     0x100,  0x64,   0x7, 0x101, 0x400f,  0xc,   0xb, 0x1ca};
  25.  
  26.     static short    moff_tbl[MAXBLK] ={
  27.     0x60,  0x2c0,    0,     0, 0x31f,    0,  0x04,     0,
  28.      0x419,  0x8a, 0x30a, 0x8a, 0x30a, 0x46, 0x406,  0x46, 
  29.         0x406,     0,  0x8a,    0,  0x80,    0,  0x8a,     0,
  30.     0x80,   0x58,   0x1,    0,  0x0f,  0x2,   0x0, 0x192};
  31.  
  32.     static short    off_tbl[MAXBLK] ={
  33.     0x40,  0x320,    0,     0, 0x35f,    0,  0x10,     0,
  34.      0x36f,  0x9c, 0x31c, 0x9c, 0x31c, 0x40, 0x360,  0x40, 
  35.         0x360,     0,  0x9c,    0,  0x50,    0,  0x9c,     0,
  36.     0x80,   0x4a,   0x1,    0,  0x3f,  0x3,   0x0, 0x150};
  37.  
  38.     static short    coff_tbl[MAXBLK] ={
  39.     0x40,  0x320,    0,     0, 0x35f,    0,  0x10,     0,
  40.      0x36f,  0x9c, 0x31c, 0x9c, 0x31c, 0x40, 0x360,  0x40, 
  41.         0x360,     0,  0x9c,    0,  0x50,    0,  0x9c,     0,
  42.     0x50,   0x4a,   0x1,    0,  0x3f,  0x3,   0x0, 0x150};
  43.  
  44.     static unsigned char    don_plt[] ={      
  45.        0,   0,   0, 128,   0,   0,   0, 128,   0, 128, 128,   0,
  46.        0,   0, 128, 128,   0, 128,   0, 128, 128, 128, 128, 128,
  47.       64,  64,  64, 240,   0,   0,   0, 240,   0, 240, 240,   0,
  48.        0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240,
  49.     
  50.        0,   0,   0, 176,   0,   0,   0, 176,   0, 176, 176,   0,
  51.        0,   0, 176, 176,   0, 176,   0, 176, 176, 240, 240, 240,
  52.        0,   0,   0, 240,   0,   0,   0, 240,   0, 240, 240,   0,
  53.        0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240 };
  54.  
  55.     static unsigned char    doff_plt[] ={      
  56.        0,   0,   0, 128,   0,   0,   0, 128,   0, 128, 128,   0,
  57.        0,   0, 128, 128,   0, 128,   0, 128, 128, 128, 128, 128,
  58.       64,  64,  64, 240,   0,   0,   0, 240,   0, 240, 240,   0,
  59.        0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240,
  60.     
  61.        0,   0,   0, 176,   0,   0,   0, 176,   0, 176, 176,   0,
  62.        0,   0, 176, 176,   0, 176,   0, 176, 176, 176, 176, 176,
  63.        0,   0,   0, 240,   0,   0,   0, 240,   0, 240, 240,   0,
  64.        0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240 };
  65.  
  66.     static unsigned char    mon_plt[] ={     
  67.      0,   0,   0,  128,   0,   0,  0, 128,   0,  128, 128,   0, 
  68.      0,   0, 128,  128,   0, 128,  0, 128, 128,  112, 112, 112, 
  69.      0,   0,   0,  240,   0,   0,  0, 240,   0,  240, 240,   0, 
  70.      0,   0, 240,  240,   0, 240,  0, 240, 240,  240, 240, 240,
  71.  
  72.      0,   0,   0,  128,   0,   0,  0, 128,   0,  128, 128,   0, 
  73.      0,   0, 128,  128,   0, 128,  0, 128, 128,  128, 128, 128, 
  74.      0,   0,   0,  240,   0,   0,  0, 240,   0,  240, 240,   0, 
  75.      0,   0, 240,  240,   0, 240,  0, 240, 240,  240, 240, 240 };
  76.  
  77.     static unsigned char moff_plt[]={
  78.      0,   0,   0, 128,   0,   0,   0, 128,   0, 128, 128,   0,   
  79.      0,   0, 128, 128,   0, 128,   0, 128, 128, 128, 128, 128,   
  80.      0,   0,   0, 240,   0,   0,   0, 240,   0, 240, 240,   0,   
  81.      0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240,
  82.  
  83.      0,   0,   0, 128,   0,   0,   0, 128,   0, 128, 128,   0,   
  84.      0,   0, 128, 128,   0, 128,   0, 128, 128, 128, 128, 128,   
  85.      0,   0,   0, 240,   0,   0,   0, 240,   0, 240, 240,   0,   
  86.      0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240 };
  87.  
  88.     static unsigned char    con_plt[]={
  89.       0,   0,   0, 176,   0,   0,   0, 176,   0, 176, 176,   0, 
  90.       0,   0, 176, 176,   0, 176,   0, 176, 176, 240, 240, 240, 
  91.     176, 176, 176, 240,   0,   0,   0, 240,   0, 240, 240,   0, 
  92.       0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240, 
  93.  
  94.       0,   0,   0, 144,   0,   0,   0, 144,   0, 144, 144,   0, 
  95.       0,   0, 144, 144,   0, 144,   0, 144, 144, 144, 144, 144, 
  96.       0,   0,   0, 240,   0,   0,   0, 240,   0, 176, 176, 176, 
  97.      80,  80,  80, 240,   0, 240,   0, 240, 128, 240, 240, 240 };
  98.  
  99.     static unsigned char    coff_plt[]={
  100.       0,   0,   0, 176,   0,   0,   0, 176,   0, 176, 176,   0, 
  101.       0,   0, 176, 176,   0, 176,   0, 176, 176, 176, 176, 176, 
  102.     176, 176, 176, 240,   0,   0,   0, 240,   0, 240, 240,   0, 
  103.       0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240, 
  104.  
  105.       0,   0,   0, 144,   0,   0,   0, 144,   0, 144, 144,   0, 
  106.       0,   0, 144, 144,   0, 144,   0, 144, 144, 144, 144, 144, 
  107.       0,   0,   0, 240,   0,   0,   0, 240,   0, 176, 176, 176, 
  108.      80,  80,  80, 240,   0, 240,   0, 240, 128, 240, 240, 240 };
  109.     static unsigned char    dmon_plt[]={
  110.        0,   0,   0, 176,   0,   0,   0, 176,   0, 176, 176,   0,
  111.        0,   0, 176, 176,   0, 176,   0, 176, 176, 240, 240, 240,
  112.       48,  48,  48, 240,   0,   0,   0, 240,   0, 240, 240,   0,
  113.        0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240,
  114.     
  115.        0,   0,   0, 128,   0,   0,   0, 128,   0, 128, 128,   0,
  116.        0,   0, 128, 128,   0, 128,   0, 128, 128, 128, 128, 128,
  117.       64,  64,  64, 240,   0,   0,   0, 240,   0, 240, 240,   0,
  118.        0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240 };
  119.     static unsigned char    dmoff_plt[]={
  120.        0,   0,   0, 176,   0,   0,   0, 176,   0, 176, 176,   0,
  121.        0,   0, 176, 176,   0, 176,   0, 176, 176, 176, 176, 176,
  122.       48,  48,  48, 240,   0,   0,   0, 240,   0, 240, 240,   0,
  123.        0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240,
  124.     
  125.        0,   0,   0, 128,   0,   0,   0, 128,   0, 128, 128,   0,
  126.        0,   0, 128, 128,   0, 128,   0, 128, 128, 128, 128, 128,
  127.       64,  64,  64, 240,   0,   0,   0, 240,   0, 240, 240,   0,
  128.        0,   0, 240, 240,   0, 240,   0, 240, 240, 240, 240, 240 };
  129. #define MAXMODE 10
  130.     static unsigned char    *now_plt[] = 
  131.     {mon_plt,moff_plt,mon_plt,moff_plt,don_plt,doff_plt,con_plt,coff_plt,dmon_plt,dmoff_plt};
  132.     static unsigned char    *new_plt[] =
  133.     {moff_plt,mon_plt,moff_plt,mon_plt,doff_plt,don_plt,coff_plt,con_plt,dmoff_plt,dmon_plt};
  134.     static short    *new_tbl[] =
  135.     {moff_tbl,plt_tbl,moff_tbl,rtc_tbl,off_tbl,on_tbl,coff_tbl,con_tbl,coff_tbl,con_tbl};
  136.     static short    pritab[] =
  137.     {8,4,8,4,9,5,8,4,8,4};
  138.     static char    *mode1[] =
  139.     {"poff","plt","roff","rtc","doff","dos","ooff","ori","dmoff","dmy"};
  140.     static char    *mode2[] =
  141.     {"POFF","PLT","ROFF","RTC","DOFF","DOS","OOFF","ORI","DMOFF","DMY"};
  142.